<?php
declare (strict_types = 1);
namespace come;

class Session
{

    function __construct()
    {}

    static function set($key,$val){
        $_SESSION[$key] = $val;
    }

    static function get($key,$default=''){
        return isset($_SESSION[$key])?$_SESSION[$key]:$default;
    }

    static function has($key){
        return isset($_SESSION[$key]);
    }

    static function delete($key){
        unset($_SESSION[$key]);
    }
}
